package springIOC.IOC_XML.service.impl;

import springIOC.IOC_XML.beans.Account;
import springIOC.IOC_XML.beans.User;
import springIOC.IOC_XML.dao.UserDao;
import springIOC.IOC_XML.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao=null;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User findUserByID(int uid) {
        return userDao.findUserByID(uid);
    }

//    -----------------------------------------------------------------------
    private Account account=null;

    @Override
    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }
}
